package com.tdkj.model.shop;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

/**
 * ShopRecommendations entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_shop_recommendation")
public class BeanShopRecommendation extends BaseEntity {

	private BeanShop shop;
	private BeanShopRecommendationCustom custom;
	private Timestamp buyTime;


	public Timestamp getBuyTime() {
		return this.buyTime;
	}

	public void setBuyTime(Timestamp buyTime) {
		this.buyTime = buyTime;
	}

	/**
	 * @return the shop
	 */
	@OneToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="shop_id")
	public BeanShop getShop() {
		return shop;
	}

	/**
	 * @param shop the shop to set
	 */
	public void setShop(BeanShop shop) {
		this.shop = shop;
	}

	/**
	 * @return the custom
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="custom_id")
	public BeanShopRecommendationCustom getCustom() {
		return custom;
	}

	/**
	 * @param custom the custom to set
	 */
	public void setCustom(BeanShopRecommendationCustom custom) {
		this.custom = custom;
	}
	
	

}